package com.share.netdisk.share.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("share")
public class Share {

	@TableId(value = "share_id", type = IdType.AUTO)
	private Integer shareId;
	@TableField("user_id")
	private Integer userId;
	@TableField("file_id")
	private Integer fileId;
	@TableField("file_code")
	private String fileCode;

	@TableField("expire_time")
	private String expireTime;

	@JsonFormat(pattern = "yyyy-MM-dd")
	@TableField("create_time")
	private Date createTime;

	@JsonFormat(pattern = "yyyy-MM-dd")
	@TableField("update_time")
	private Date updateTime;

	@TableField("file_status")
	private String status;
}
